package com.eclipse.training.model;

public class AbstractUniverseElement {
	private String designation = "";
	private String constellation = "";
	private String name = "";

	public AbstractUniverseElement(String name) {
		super();
		this.name = name;
	}

	public AbstractUniverseElement(String name, String designation,
			String constellation) {
		super();
		this.name = name;
		this.designation = designation;
		this.constellation = constellation;
	}

	public AbstractUniverseElement() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDesignation() {
		return designation;
	}

	public void setDesignation(String designation) {
		this.designation = designation;
	}

	public String getConstellation() {
		return constellation;
	}

	public void setConstellation(String constellation) {
		this.constellation = constellation;
	}

	@Override
	public String toString() {
		return (name != null ? name : "") + " "
				+ (designation != null ? designation : "") + " "
				+ (constellation != null ? constellation : "");
	}
}
